package com.uduew.sjd.api;

import static com.uduew.sjd.config.Const.SUBMIT_CALENDAR;

import androidx.annotation.NonNull;

import com.hjq.http.config.IRequestApi;
import com.hjq.http.config.IRequestBodyStrategy;
import com.hjq.http.config.IRequestType;
import com.hjq.http.model.RequestBodyType;

import java.util.ArrayList;


public class SubmitCalendarApi implements IRequestApi, IRequestType {

    private ReqSubmitCalendarBean overripe;

    public SubmitCalendarApi(ReqSubmitCalendarBean overripe) {
        this.overripe = overripe;
    }

    @NonNull
    @Override
    public String getApi() {
        return SUBMIT_CALENDAR;
    }

    /**
     * 获取参数的提交类型
     */
    @NonNull
    @Override
    public IRequestBodyStrategy getBodyType() {
        return RequestBodyType.JSON;
    }

    public static final class ReqSubmitCalendarBean {
        private ArrayList<HesitancyBean> hesitancy;

        public ReqSubmitCalendarBean(ArrayList<HesitancyBean> hesitancy) {
            this.hesitancy = hesitancy;
        }
    }

    public static final class HesitancyBean {
        private String quaquversal;
        private String minicom;
        private String cpcu;
        private String reluctant;
        private String tarpan;
        private String acotyledonous;
        private String despoil;
        private String pickwickian;
        private String inventroy;
        private String diestrous;
        private String hygrothermograph;
        private String speakership;
        private String png;
        private String polydomous;
        private String dempster;

        public HesitancyBean(String quaquversal, String minicom, String cpcu, String reluctant, String tarpan, String acotyledonous, String despoil, String pickwickian, String inventroy, String diestrous, String hygrothermograph, String speakership, String png, String polydomous, String dempster) {
            this.quaquversal = quaquversal;
            this.minicom = minicom;
            this.cpcu = cpcu;
            this.reluctant = reluctant;
            this.tarpan = tarpan;
            this.acotyledonous = acotyledonous;
            this.despoil = despoil;
            this.pickwickian = pickwickian;
            this.inventroy = inventroy;
            this.diestrous = diestrous;
            this.hygrothermograph = hygrothermograph;
            this.speakership = speakership;
            this.png = png;
            this.polydomous = polydomous;
            this.dempster = dempster;
        }
    }

}


